package com.dale.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @author Gyt
 * @create 2021-05-20 - 10:22
 */

/**
 * 暂时没用到
 */
@Configuration
public class FileConfig implements WebMvcConfigurer {

    @Override
    public void addResourceHandlers(ResourceHandlerRegistry registry) {
//        registry.addResourceHandler("/image/**").addResourceLocations("C:\\Users\\28773\\IdeaProjects\\GitProjects\\dale_vueblog\\vueblog-master\\vueblog-java\\src\\main\\resources\\avatar");

        //addResourceLocations  本地路径
        //addResourceHandler    虚拟路径
//        registry.addResourceHandler("/image/**").addResourceLocations("file:");

    }
}

